import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "Web/"
let serviceName1 = "/Web/"
import { getBaseUrl } from "@/utils/appUrls.js"
//获取信息
export function getInitWebInfo(data,shopBusinessId) {
    return http.post({
        url: getBaseUrl() + serviceName + "getInitWebInfo?domain="+data.domain+"&platform=WX",
		// +"&domain="+data.domain+"&platform=WX"
        data,
    })
}
//检查版本
export function GetAppSetting(path) {
    return http.get({
        url: getBaseUrl() + serviceName + "GetAppSetting" + path,
    })
}
export function GetGuideApiUrl(path) {
    return http.post({
        url: "https://ylscapi.heleasy.cn/api/Web/GetGuideApiUrl" + path,
    })
}
//获取注册项
export function GetRegisterInitData() {
    return http.get({
        url: getBaseUrl() + serviceName + "GetRegisterInitData",
    })
}
//获取验证码，需更新token
export function GetVerifyCode() {
    return http.post({
        url: getBaseUrl() + serviceName + "GetVerifyCode",
    })
}

// 发送短信验证码
export function getSmsNoVerifyCode(data, path) {
    return http.post({
        url: getBaseUrl() + serviceName + "SendSmsNoVerifyCode" + path,
        data,
    })
}

// 获取小程序列表
export function GetTrunAppList() {
    return http.get({
        url: getBaseUrl() + serviceName + "GetTrunAppList",
    })
}

// 获取小程序列表
export function GetTrunAppCategory() {
    return http.get({
        url: getBaseUrl() + serviceName + "GetTrunAppCategory",
    })
}
